package cn.czg.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("post")
public class Post {
    @TableId(value = "id", type = IdType.AUTO)  // 表示 ID 由你手动填充，而不是数据库自动生成
    private Long id;
    private Long userId;
    private String type;
    private String title;
    private String content;
    private String images;
    private String location;
    private String tags;
    private Integer likeCount;
    private Integer commentCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Double latitude;
    private Double longitude;
    private Integer status;
}
